package com.dannypatterson.as3p2p.events {
	
	import com.dannypatterson.as3p2p.PeerConnection;
	
	import flash.events.Event;
	
	/**
	 * @author Danny Patterson
	 */
	public class PeerDataEvent extends Event {
		
		static public const PEER_DATA_RECEIVED:String = "peerDataReceived";
		
		public var data:Object;
		
		public function PeerDataEvent(type:String, data:Object, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.data = data;
		}
		
		override public function clone():Event {
			return new PeerDataEvent(type, data, bubbles, cancelable);
		}

	}
	
}